package com.zhuzhoujia.city_wide_action;

import com.example.zhuzhoujia.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.ListView;

public class ActivityFragment extends Fragment {
	@ViewInject(R.id.list)
	private ListView list;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v=inflater.inflate(R.layout.all_activity_listview, null);
		ViewUtils.inject(this, v);
		ViewStub stub=new ViewStub(getActivity());
		list.addHeaderView(stub);
		list.setAdapter(new ListActivityAdapter(getActivity()));
		return v;
	}
}
